package com.xh.bussiness.system.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xh.core.model.SuperEntity;
import com.xh.core.util.StringUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 组权限
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
@Data
@Accessors(chain = true)
@TableName("sys_group_rule")
public class GroupRule extends Model<GroupRule> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 用户组id
     */
    private String groupId;

    /**
     * 学科code
     */
    private String subjectCode;

    /**
     * 年份 【多值,分隔】
     */
    @TableField(value = "year",strategy = FieldStrategy.IGNORED)
    private String year;

    /**
     * 年级id 【多值,分隔】
     */
    @TableField(value = "grade_id",strategy = FieldStrategy.IGNORED)
    private String gradeId;

    /**
     * 学期id 【多值,分隔】
     */
    @TableField(value = "term_id",strategy = FieldStrategy.IGNORED)
    private String termId;

    /**
     * 教材版本id 【多值,分隔】
     */
    @TableField(value = "book_version_id",strategy = FieldStrategy.IGNORED)
    private String bookVersionId;

    /**
     * 课程分类【多值,分隔】
     */
    @TableField(value = "course_type_id",strategy = FieldStrategy.IGNORED)
    private String courseTypeId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
